Optimal. Leaf size=41 \[ x (a+a x)^m (c-c x)^m \left (1-x^2\right )^{-m} \, _2F_1\left (\frac {1}{2},-m;\frac {3}{2};x^2\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 41, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 3, integrand size = 16, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.188, Rules used = {42, 252, 251}
\begin {gather*} x \left (1-x^2\right )^{-m} (a x+a)^m (c-c x)^m \, _2F_1\left (\frac {1}{2},-m;\frac {3}{2};x^2\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 42
Rule 251
Rule 252
Rubi steps
\begin {align*} \int (a+a x)^m (c-c x)^m \, dx &=\left ((a+a x)^m (c-c x)^m \left (a c-a c x^2\right )^{-m}\right ) \int \left (a c-a c x^2\right )^m \, dx\\ &=\left ((a+a x)^m (c-c x)^m \left (1-x^2\right )^{-m}\right ) \int \left (1-x^2\right )^m \, dx\\ &=x (a+a x)^m (c-c x)^m \left (1-x^2\right )^{-m} \, _2F_1\left (\frac {1}{2},-m;\frac {3}{2};x^2\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.06, size = 53, normalized size = 1.29 \begin {gather*} \frac {2^m (-1+x) (1+x)^{-m} (a (1+x))^m (c-c x)^m \, _2F_1\left (-m,1+m;2+m;\frac {1}{2}-\frac {x}{2}\right )}{1+m} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Mathics [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: AttributeError} \end {gather*}
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.08, size = 0, normalized size = 0.00 \[\int \left (a x +a \right )^{m} \left (-c x +c \right )^{m}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.31, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [C] Result contains complex when optimal does not.
time = 2.07, size = 124, normalized size = 3.02 \begin {gather*} \frac {a^{m} c^{m} {G_{6, 6}^{5, 3}\left (\begin {matrix} - \frac {m}{2}, \frac {1}{2} - \frac {m}{2}, 1 & \frac {1}{2}, - m, \frac {1}{2} - m \\- m - \frac {1}{2}, - m, - \frac {m}{2}, \frac {1}{2} - m, \frac {1}{2} - \frac {m}{2} & 0 \end {matrix} \middle | {\frac {e^{- 2 i \pi }}{x^{2}}} \right )} e^{- i \pi m}}{4 \pi \Gamma \left (- m\right )} - \frac {a^{m} c^{m} {G_{6, 6}^{2, 6}\left (\begin {matrix} - \frac {1}{2}, 0, \frac {1}{2}, - \frac {m}{2} - \frac {1}{2}, - \frac {m}{2}, 1 & \\- \frac {m}{2} - \frac {1}{2}, - \frac {m}{2} & - \frac {1}{2}, 0, - m - \frac {1}{2}, 0 \end {matrix} \middle | {\frac {1}{x^{2}}} \right )}}{4 \pi \Gamma \left (- m\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] N/A
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.02 \begin {gather*} \int {\left (a+a\,x\right )}^m\,{\left (c-c\,x\right )}^m \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________